/*
 * $Id: AbstractRequestLoginDetails.java,v 1.3 2009/07/24 18:27:42 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Wed Dec 31 15:32:24 CST 2008 by MyEclipse Hibernate Tool.
 */
package com.ge.healthcare.autosc.common.database.pojo;

import java.io.Serializable;

/**
 * A class that represents a row in the ACT_REQUEST_LOGIN_DETAILS table. 
 * You can customize the behavior of this class by editing the class, {@link ActRequestLoginDetails()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractRequestLoginDetails 
    implements Serializable
{
    /**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 5954535962104399740L;

	/** The cached hash code value for this instance.  Settting to 0 triggers re-calculation. */
    private int hashValue = 0;

    /** The composite primary key value. */
    private java.lang.Long requestLoginDetailId;

    /** The value of the actRequest association. */
    private Long requestId;

    /** The value of the simple name property. */
    private java.lang.String name;

    /** The value of the simple password property. */
    private java.lang.String password;

    /**
     * Simple constructor of AbstractRequestLoginDetails instances.
     */
    public AbstractRequestLoginDetails()
    {
    }

    /**
     * Constructor of AbstractRequestLoginDetails instances given a simple primary key.
     * @param requestLoginDetailId
     */
    public AbstractRequestLoginDetails(java.lang.Long requestLoginDetailId)
    {
        this.setRequestLoginDetailId(requestLoginDetailId);
    }

    /**
     * Return the simple primary key value that identifies this object.
     * @return java.lang.Long
     */
    public java.lang.Long getRequestLoginDetailId()
    {
        return requestLoginDetailId;
    }

    /**
     * Set the simple primary key value that identifies this object.
     * @param requestLoginDetailId
     */
    public void setRequestLoginDetailId(java.lang.Long requestLoginDetailId)
    {
        this.hashValue = 0;
        this.requestLoginDetailId = requestLoginDetailId;
    }

    /**
     * Return the value of the REQUEST_ID column.
     * @return ActRequest
     */
    public Long getRequestId()
    {
        return this.requestId;
    }

    /**
     * Set the value of the REQUEST_ID column.
     * @param actRequest
     */
    public void setRequestId(Long requestId)
    {
        this.requestId = requestId;
    }

    /**
     * Return the value of the NAME column.
     * @return java.lang.String
     */
    public java.lang.String getName()
    {
        return this.name;
    }

    /**
     * Set the value of the NAME column.
     * @param name
     */
    public void setName(java.lang.String name)
    {
        this.name = name;
    }

    /**
     * Return the value of the PASSWORD column.
     * @return java.lang.String
     */
    public java.lang.String getPassword()
    {
        return this.password;
    }

    /**
     * Set the value of the PASSWORD column.
     * @param password
     */
    public void setPassword(java.lang.String password)
    {
        this.password = password;
    }

    /**
     * Implementation of the equals comparison on the basis of equality of the primary key values.
     * @param rhs
     * @return boolean
     */
    public boolean equals(Object rhs)
    {
        if (rhs == null)
            return false;
        if (! (rhs instanceof ActRequestLoginDetails))
            return false;
        ActRequestLoginDetails that = (ActRequestLoginDetails) rhs;
        if (this.getRequestLoginDetailId() == null || that.getRequestLoginDetailId() == null)
            return false;
        return (this.getRequestLoginDetailId().equals(that.getRequestLoginDetailId()));
    }

    /**
     * Implementation of the hashCode method conforming to the Bloch pattern with
     * the exception of array properties (these are very unlikely primary key types).
     * @return int
     */
    public int hashCode()
    {
        if (this.hashValue == 0)
        {
            int result = 17;
            int requestLoginDetailIdValue = this.getRequestLoginDetailId() == null ? 0 : this.getRequestLoginDetailId().hashCode();
            result = result * 37 + requestLoginDetailIdValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }
}
